package com.baolai.service;

import com.alibaba.fastjson.JSONObject;
import com.baolai.dto.GoodsShelf;
import com.baolai.entity.ShelfGoods;
import com.baolai.result.Result;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;


@Service
public interface ShelfGoodsService extends IService<ShelfGoods> {

    Result inStock(String goodsId, Integer shelfId, Integer floor, String siteId, Integer number,String account,String name);

    ShelfGoods getShelfGoods(String goodsId, String site);

    GoodsShelf getGoodsShelf(String goodsId,String site);

    boolean addShelfGoods(ShelfGoods shelfGoods);

    boolean updateShelfGoods(ShelfGoods shelfGoods);

    Result outStock(String goodsId, String site, String account, String name,Integer number);

    JSONObject listShelfGoods(Integer current, Integer size);

    JSONObject queryShelfGoods(String key, Integer current, Integer size);

    JSONObject queryShelfGoodsBySite(Integer shelfId, Integer current, Integer size);
}
